import axios from "./axios";
// 定义注册页接口

// 定义验证手机号是否被注册过
export function checkphone(data:{tel:string}){
    return axios({
        method:'post',
        url:'user/docheckphone',
        data
    })
}
// 定义发送短信验证码接口
export function sendmsgcode(data:{tel:string}){
    return axios({
        method:'post',
        url:'/user/dosendmsgcode',
        data
    })
}
// 定义验证短信验证码接口
export function docheckcode(data:{tel:string,telcode:string}){
    return axios({
        method:'post',
        url:'/user/docheckcode',
        data
    })
}
// 定义注册账号接口
export function finishregister(data:{tel:string,password:string}){
    return axios({
        method:'post',
        url:'/user/dofinishregister',
        data
    })
}
